﻿@model KCMS.Web.Models.ClientViewModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Ajax.BeginForm("CreateClient", new AjaxOptions { UpdateTargetId = "cart-details-container" }))
{
    @Html.ValidationSummary(true)
    <div class="editor-label">
        ФИО*:
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </div>
    <div class="editor-label">
        Организация:
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Organization)
        @Html.ValidationMessageFor(model => model.Organization)
    </div>
    <div class="editor-label">
        Email*:
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Email)
        @Html.ValidationMessageFor(model => model.Email)
    </div>

    <div class="editor-label">
        Телефон*:
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Phone)
        @Html.ValidationMessageFor(model => model.Phone)
    </div>

    <div class="editor-label">
        Адресс доставки:
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Adress)
        @Html.ValidationMessageFor(model => model.Adress)
    </div>
    @Html.HiddenFor(model => model.Id)
    <div class="create-order-next-step">
        <input type="submit" value="Продолжить" class="button" id="create-client-button" />
    </div>
   
}
<div>
    @Ajax.ActionLink("Назад", "ChooseDelivery", null, new AjaxOptions { HttpMethod = "GET", UpdateTargetId = "cart-details-container" }, new
   {
       @class
           = "button"
   })
</div>
* - обязательные поля для заполнения.
<script type="text/javascript">
    $(".button").button();
    shop.autoCompliteClientForm();
</script>
